package com.renfei.multimediatask.util;

import android.content.Context;
import android.util.DisplayMetrics;

public class ScreenUtils {

    public static int getScreentWidth(Context context){
        DisplayMetrics metrics=context.getResources().getDisplayMetrics();
        return metrics.widthPixels;
    }
    public static int getScreentHeight(Context context){
        DisplayMetrics metrics=context.getResources().getDisplayMetrics();
        return metrics.heightPixels;
    }


}
